package com.hu.config;

import com.hu.doman.AutoProperties;
import com.hu.service.AutoService;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(AutoProperties.class)
public class AutoConfig {
    @Bean
    public AutoService autoService(){
        return new AutoService();
    }
}
